//
//  WheelView.h
//  HouseOfWillow
//
//  Created by ODSdev2 on 15/11/2.
//  Copyright (c) 2015年 liubenwang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^Oneblock)(NSInteger i);
typedef void(^Threeblock)(NSString * element0,NSString * element1,NSString *element2);

@interface WheelView : UIView

/****************METH**********************/
/**
 *  @brief  一个Compinent的pickView
 *
 *  @param title 标题
 *  @param dataArray 数据源
 *  @param block 回调
 */
+ (void)wheelViewOneComponentWithTitle:(NSString *)title dataArray:(NSArray *)dataArray andSelectRow:(NSInteger)selectedRow Block:(Oneblock)block;
/**
 *  @brief  三个Compinent的pickView
 *
 *  @param title 标题
 *  @param leftArray 左边数组 @[@"0"]
 *  @param midArray 中间嵌套数组 @[@[@"01",@"02"]]
 *  @param rightArray 右边双嵌套数组@[@[@[@"011",@"012"],@[@"021",@"022"]]]
 *  @param block 回调
 */
+ (void)wheelViewThreeComponentWithTitle:(NSString *)title leftArray:(NSArray *)leftArray midArray:(NSArray *)midArray rightArray:(NSArray *)rightArray andSelectState:(NSArray *)states Block:(Threeblock)block;


@end
